package com.cyf.service;

import com.cyf.db.bean.User;
import com.cyf.db.bean.BookingInfo;

import java.util.Date;

/**
 * 车位预约
 * Created by hfy on 2017/5/4.
 */
public interface BookingService {

    /**
     * 车位预约超时,扣除eb，关闭预约订单
     *
     * @param now 当前时间
     */
    void timeout(Date now);

    /**
     * 取消预约
     *
     * @param bookingInfo 预约id
     * @param user     app用户
     */
    void cacelBooking(BookingInfo bookingInfo, User user);
}
